home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / snmp / mib2c-data / generic-value-map-reverse.m2i < prev    next >
Encoding:
Text File  |  2007-02-07  |  1.4 KB  |  39 lines

  1. #############################################################  -*- c -*-
  2. ## generic include for XXX. Do not use directly.
  3. ##
  4. ## $Id: generic-value-map-reverse.m2i,v 1.6.2.1 2005/05/21 15:09:24 rstory Exp $
  5. ########################################################################
  6. @if $m2c_mark_boundary == 1@
  7. /** START code generated by $RCSfile: generic-value-map-reverse.m2i,v $ $Revision: 1.6.2.1 $ */
  8. @end@
  9. ########################################################################
  10. ##
  11. /*
  12.  * TODO:245:o: |-> Implement $node reverse mapping.
  13.  * If the values for your data type don't exactly match the
  14.  * possible values defined by the mib, you should map them here.
  15.  */
  16. ##&& ($node.syntax ne $node.perltype) 
  17. @    if ("$node.perltype" eq "INTEGER") && ($node.enums == 1)@
  18. $example_start
  19.     switch($m2c_node_srh) {
  20. @    foreach $e $v enum@
  21. @        include m2c_setup_enum.m2i@
  22.         case $m2c_ename:
  23.              $m2c_node_srh = INTERNAL_$m2c_iname;
  24.              break;
  25.  
  26. @    end@ # foreach
  27.              default:
  28.                  snmp_log(LOG_ERR, "couldn't reverse map value %ld for $node\n", $m2c_node_srh );
  29.                  return SNMP_ERR_GENERR;
  30.     }
  31. $example_end
  32.  
  33. @end@    
  34. ##
  35. ########################################################################
  36. @if $m2c_mark_boundary == 1@
  37. /** END code generated by $RCSfile: generic-value-map-reverse.m2i,v $ $Revision: 1.6.2.1 $ */
  38. @end@
  39.